Add build flag IA_BUILD_SAMPLES
This commit is contained in:
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"label": "build",
|
"label": "build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "cmake -S. -B./build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ && cmake --build build",
|
"command": "cmake -S. -B./build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DIA_BUILD_SAMPLES=ON && cmake --build build",
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
|
|||||||
@ -9,4 +9,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|||||||
|
|
||||||
project(IACore)
|
project(IACore)
|
||||||
add_subdirectory(Src/IACore)
|
add_subdirectory(Src/IACore)
|
||||||
|
|
||||||
|
if(IA_BUILD_SAMPLES)
|
||||||
add_subdirectory(Src/IACoreTest)
|
add_subdirectory(Src/IACoreTest)
|
||||||
|
endif()
|
||||||
Reference in New Issue
Block a user