Skip to content

Commit

Permalink
FIXED: It's always a good idea to add new files to CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfighter1985 committed Feb 29, 2012
1 parent 7ebbafa commit 4529a2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/battlegrounds/CMakeLists.txt
Expand Up @@ -6,8 +6,13 @@ SET( prefix ${ROOT_PATH}/src/scripts/src/${PROJECT_NAME} )
SET( sources
AlteracValley.cpp
ArathiBasin.cpp
CircleOfBlood.cpp
DalaranSewers.cpp
EyeOfTheStorm.cpp
IsleOfConquest.cpp
RingOfTrials.cpp
RingOfValor.cpp
RuinsOfLordaeron.cpp
Setup.cpp
StrandOfTheAncient.cpp
WarsongGulch.cpp
Expand Down

5 comments on commit 4529a2f

@Lillecarl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not user *.cpp?

@dfighter1985
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because you can't?

@Lillecarl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you cannot wildcard in cmake? :O Hmm, well i guess im wrong there then ^^,

@dfighter1985
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just not there.
In case you haven't noticed SET is used to set a variable...
Setting ".cpp" would set it to ".cpp" ( the string )......

@bloerwald
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use globbing:
FILE (GLOB sources "*.cpp")
ADD_EXECUTABLE (foo ${sources})

Please sign in to comment.