-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b81fe0e
commit 5749d74
Showing
1 changed file
with
6 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
# CMakeList.txt : CMake project for vcpkgdemo, include source and define | ||
# project specific logic here. | ||
# CMakeList.txt : Top-level CMake project file, do global configuration | ||
# and include sub-projects here. | ||
# | ||
cmake_minimum_required (VERSION 3.8) | ||
|
||
# Add source to this project's executable. | ||
add_library (vcpkgdemo "vcpkgdemo.cpp" "vcpkgdemo.h") | ||
project ("vcpkgdemo") | ||
|
||
if (CMAKE_VERSION VERSION_GREATER 3.12) | ||
set_property(TARGET vcpkgdemo PROPERTY CXX_STANDARD 20) | ||
endif() | ||
|
||
# TODO: Add tests and install targets if needed. | ||
install(FILES "${CMAKE_CURRENT_LIST_DIR}/vcpkgdemo.h" DESTINATION "include") | ||
|
||
install(TARGETS vcpkgdemo | ||
EXPORT vcpkgdemo-config | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
) | ||
# Include sub-projects. | ||
add_subdirectory ("vcpkgdemo") |