mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-19 04:34:36 +03:00
add new cppcheck example with updated dockerfiles
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Set the project name
|
||||
project (subproject1)
|
||||
|
||||
# Create a sources variable with a link to all cpp files to compile
|
||||
set(SOURCES
|
||||
main1.cpp
|
||||
)
|
||||
|
||||
# Add an executable with the above sources
|
||||
add_executable(${PROJECT_NAME} ${SOURCES})
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
std::cout << "Hello Main1!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user