remove option to build txt in the test project

This commit is contained in:
Alfi Maulana 2023-01-08 14:11:25 +07:00
parent 44d52623ce
commit 809b703d05
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -3,7 +3,6 @@ project(test)
option(BUILD_C "build hello world in C Language" OFF)
option(BUILD_CXX "build hello world in CXX Language" ON)
option(BUILD_TXT "build hello world txt file" OFF)
if(BUILD_C)
add_executable(hello_world_c hello_world.c)
@ -12,10 +11,3 @@ endif()
if(BUILD_CXX)
add_executable(hello_world hello_world.cpp)
endif()
if(BUILD_TXT)
add_custom_target(
hello_world_txt ALL
COMMAND echo "Hello world!" >> ${CMAKE_CURRENT_BINARY_DIR}/hello_world.txt
)
endif()