Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
sw/test/integrations/CMakeLists.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (20 sloc)
514 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.14) | |
# Use solution folders. | |
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | |
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMake Targets") | |
project(my C CXX) | |
set(SW_BUILD_SHARED_LIBS 1) | |
find_package(SW REQUIRED) | |
sw_add_package( | |
org.sw.demo.sqlite3 | |
org.sw.demo.glennrp.png | |
) | |
sw_execute() | |
add_executable(png png.cpp) | |
target_link_libraries(png | |
org.sw.demo.glennrp.png | |
) | |
add_executable(sqlite3 sqlite3.cpp) | |
target_link_libraries(sqlite3 | |
org.sw.demo.sqlite3 | |
) |