[project] name = "conditions" cmake-after = "set(CUSTOM ON)" [options] CONDITIONS_BUILD_TESTS = false [conditions] custom = "CUSTOM" [target.example] type = "executable" sources = ["src/main.cpp"] windows.sources = ["src/windows_specific.cpp"] cmake-after = "message(STATUS cmake-after)" windows.cmake-after = "message(STATUS win32-after)" macos.cmake-after = "message(STATUS macos-after)" linux.cmake-after = "message(STATUS linux-after)" unix.cmake-after = "message(STATUS unix-after)" custom.cmake-after = "message(STATUS custom-after)" build-tests.cmake-after = "message(STATUS build-tests)" [target.example.properties] AUTOMOC = false custom.OUTPUT_NAME = "example2" custom.AUTORCC = true AUTOGEN = "ON"