FasTC/CLTool/CMakeLists.txt

59 lines
1.8 KiB
Text
Raw Normal View History

2016-08-17 23:49:13 +00:00
# Copyright 2016 The University of North Carolina at Chapel Hill
2012-11-15 16:51:55 +00:00
#
2016-08-17 23:49:13 +00:00
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
2012-11-15 16:51:55 +00:00
#
2016-08-17 23:49:13 +00:00
# http://www.apache.org/licenses/LICENSE-2.0
2012-11-15 16:51:55 +00:00
#
2016-08-17 23:49:13 +00:00
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
2012-11-15 16:51:55 +00:00
#
# Please send all BUG REPORTS to <pavel@cs.unc.edu>.
# <http://gamma.cs.unc.edu/FasTC/>
INCLUDE_DIRECTORIES( ${FasTC_SOURCE_DIR}/Base/include )
2014-01-30 18:55:55 +00:00
INCLUDE_DIRECTORIES( ${FasTC_BINARY_DIR}/Base/include )
2013-03-21 04:15:23 +00:00
INCLUDE_DIRECTORIES( ${FasTC_SOURCE_DIR}/Core/include )
INCLUDE_DIRECTORIES( ${FasTC_SOURCE_DIR}/IO/include )
ADD_EXECUTABLE(
tc
2013-11-11 19:11:41 +00:00
"src/tc.cpp"
)
ADD_EXECUTABLE(
compare
"src/compare.cpp"
)
ADD_EXECUTABLE(
decomp
"src/decomp.cpp"
)
2013-11-11 19:11:41 +00:00
# Add flag for link time code generation. This was used to build the libpng
# libraries, so we should probably also include it for this project as well...
IF( MSVC )
SET_TARGET_PROPERTIES(tc PROPERTIES LINK_FLAGS "/LTCG")
SET_TARGET_PROPERTIES(compare PROPERTIES LINK_FLAGS "/LTCG")
SET_TARGET_PROPERTIES(decomp PROPERTIES LINK_FLAGS "/LTCG")
ENDIF()
TARGET_LINK_LIBRARIES( tc FasTCBase )
2013-03-21 04:15:23 +00:00
TARGET_LINK_LIBRARIES( tc FasTCIO )
TARGET_LINK_LIBRARIES( tc FasTCCore )
TARGET_LINK_LIBRARIES( compare FasTCBase )
TARGET_LINK_LIBRARIES( compare FasTCIO )
TARGET_LINK_LIBRARIES( decomp FasTCBase )
TARGET_LINK_LIBRARIES( decomp FasTCIO )
INSTALL(TARGETS tc compare decomp EXPORT FasTCTargets
RUNTIME DESTINATION bin COMPONENT bin)